﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using t_205_verk_hopur_12.Models;

namespace t_205_verk_hopur_12.Tests.Fakes
{
    class FakeUserRepository : IUserRepository
    {

        private List<User> userList;

        public FakeUserRepository(List<User> users)
        {
            userList = users;
        }

        public void Add(User user)
        {
            throw new NotImplementedException();
        }

        public IEnumerable<Channel> GetEmployedAtChannels(int userID)
        {
            throw new NotImplementedException();
        }

        public IEnumerable<Channel> GetOwnedChannels(int userID)
        {
            throw new NotImplementedException();
        }

        public IEnumerable<Channel> GetSubscribedChannels(int userID)
        {
            throw new NotImplementedException();
        }

        public User GetUserByID(int id)
        {
            return userList.SingleOrDefault(c => c.ID == id);
        }

        public User GetUserInfoByUsername(string name)
        {
            throw new NotImplementedException();
        }

        public void Save()
        {
            throw new NotImplementedException();
        }
    }
}
